package com.mini.cn.goods.io.netty.ws;

import io.netty.util.AttributeKey;

/**
 * Created with IntelliJ IDEA.

 * User: fly
 * Date: 2020-01-16
 * Time: 8:05 下午
 */
public final class WsConfig {

    //定义最大frame发送 200k
    public static final int MAXFRAMEPAYLOADLENGTH = 200 * 1024;

    //拆包后每个包的大小
    public static final int UNPACKSIZE = 65536;

    //设置最大2m
    public static final int MAXSIZE = 2 * 1024 * 1024;

    public static final AttributeKey<WebSocketSession> SESSION_KEY =
            AttributeKey.valueOf("WEBSOCKET_SESSION");
}
